import React, { Component } from 'react'
import 'antd/dist/antd.css'
import Login from './pages/login'
import Admin from './pages/admin'
import { Route, BrowserRouter,Switch, Redirect} from 'react-router-dom'

export default class App extends Component {
    render() {
        return (
            <BrowserRouter>
                <Switch>
                    <Route path='/admin' component={Admin}/>
                    <Route path='/login' component={Login}/>
                    <Redirect to='/login'/>
                </Switch>
            </BrowserRouter>
        )
    }
}
